str1 = input("请输入字符串：")
str2 = ""
max = 0
for i in str1:
    if i not in str2:
        str2 += i
        c = str1.count(i)
        print(i, c)
    if c>=max:
        max = c
        a = i
print("出现次数最多的字符为：",a)